//
//  JBMainViewController.m
//  JBBasicDataViewModuleController
//
//  Created by Yongbin Zhang on 12/23/13.
//  Copyright (c) 2013 JustBen. All rights reserved.
//

#import "JBMainViewController.h"

#import "JBEventListController.h"


@interface JBMainViewController ()

@property (nonatomic, retain) JBEventListController *eventListController;

@end

@implementation JBMainViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        _eventListController = [[JBEventListController alloc] init];
        _eventListController.tableView.frame = self.view.bounds;
        [self.view addSubview:_eventListController.tableView];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    [self.eventListController reloadData];
}


- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
}

@end
